﻿using CodingExercises._11_20;

namespace CodingExercises._21_30;

public class ResetCounter
{
    private static int _logCounter;

    public ResetCounter()
    {
        _logCounter = 1;
    }

    public static void Log(string message)
    {
        Console.WriteLine($"[{_logCounter}]{message}");
    }

    // 使用统计信息
    public static void Method()
    {
        _logCounter = 1;
    }
}